package com.sc.nft.dao;

import lombok.extern.slf4j.Slf4j;
import com.sc.nft.entity.AutoUserList;
import com.sc.nft.mapper.AutoUserListMapper;
import  com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Repository;

/**
 * (sc_auto_user_list)数据DAO
 *
 * @author zxy
 * @since 2023-10-25 15:57:29
 * @description 商户banner
 */
@Slf4j
@Repository
public class AutoUserListDao extends ServiceImpl<AutoUserListMapper, AutoUserList> {

    public AutoUserList getRandomOne(){
        return lambdaQuery().last("ORDER BY RAND() LIMIT 1").one();
    }
}